package com.game.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 物品
 * </p>
 *
 * @author lvhao
 * @since 2020-07-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel
public class Item extends Model<Item> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id，自动生成")
    private Integer id;

    /**
     * 最大堆叠
     */
    @ApiModelProperty(value = "最大堆叠")
    private Integer maxStack;

    /**
     * 物品名称
     */
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String details;

    /**
     * 耐久
     */
    @ApiModelProperty(value = "耐久")
    private Integer durable;

    /**
     * 攻速
     */
    @ApiModelProperty(value = "攻速")
    private Integer attackSpeed;

    /**
     * 攻击
     */
    @ApiModelProperty(value = "攻击")
    private Integer attack;

    /**
     * 物品类型id
     */
    @ApiModelProperty(value = "物品类型id")
    private Integer itemTypeId;

    /**
     * 容纳
     */
    @ApiModelProperty(value = "容纳")
    private Integer accommodate;

    /**
     * 燃烧时间
     */
    @ApiModelProperty(value = "燃烧时间")
    private Double burningTime;

    /**
     * 移速
     */
    @ApiModelProperty(value = "移速")
    private Integer movingSpeed;

    /**
     * 防御
     */
    @ApiModelProperty(value = "防御")
    private Integer defense;

    /**
     * 回血
     */
    @ApiModelProperty(value = "回血")
    private Integer replyHp;

    /**
     * 回复口渴
     */
    @ApiModelProperty(value = "回复口渴")
    private Integer replyThirsty;

    /**
     * 回复饥饿
     */
    @ApiModelProperty(value = "回复饥饿")
    private Integer replyHunger;

    /**
     * 物品id
     */
    @ApiModelProperty(value = "攻速")
    private Integer itemId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
